<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="copyright" content="http://www.appcms.org" />
<link rel="stylesheet" href="skin/base.css">
<script src="js/zy_control.js"></script>
<script src="js/zy_click.js"></script>
<script src="js/config.js"></script>
<style>
body {
	background-color: #343434;
}
#main {
	background: url(skin/images/welcome.jpg) no-repeat center;
	-webkit-background-size: auto 100%;
	background-size: auto 100%;
}
</style>
</head>
<body>
<div id="main" onclick="ok()"></div>
</body>
	<script>
	zy_init();
	var statusok = false;
	function ok(){
		if (statusok) {
			uexWindow.evaluateScript('root', 0, 'welcomeok()');
			uexWindow.evaluateScript('welcome',0,'uexWindow.close(1)');
		}else{
			main();
		}
	}
	
	function main(){
		localStorage.clear();
		if (typeof(uexWidgetOne.getPlatform()) != "undefined") {
			localStorage['device'] = uexWidgetOne.getPlatform();
		}else{
			localStorage['device'] = 999;
		}
		localStorage['version'] = version;
		var url = app_path + 'index.php?m=iapp&c=app&a=setting';
		uexXmlHttpMgr.open(0, 'post', url, "8000");
		uexXmlHttpMgr.send(0);
	}
	
	window.uexOnload = function(type){
	 	if (!type) {
			uexXmlHttpMgr.onData = function(opId, status, data){
				uexXmlHttpMgr.close(opId);
				if (status == 1) {
					data=JSON.parse(data);
					if (data['success'] == 'yes') {
						statusok = true;
						localStorage['skin'] = data['data']['skin'];
						localStorage['config'] = data['data']['config'];
					}
				}else if(status==-1){
					uexWindow.toast("0","5",'软件初始化失败，请重新启动软件~',5000);
				}
			}
			
			main();
	 	}
	 }
	</script>
</html>